.TH std::istrstream::~istrstream 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::istrstream::~istrstream \- std::istrstream::~istrstream

.SH Synopsis
   virtual ~istrstream();  (deprecated in C++98)
                           (removed in C++26)

   Destroys a std::istrstream object, which also destroys the member std::strstreambuf.

.SH Parameters

   \fI(none)\fP

.SH Notes

   The constructors of std::istrstream do not create the underlying std::strstreambuf
   in dynamically allocated mode, so the memory leaks that are possible with
   std::ostrstream::~ostrstream or std::strstream::~strstream do not apply.

.SH Example


// Run this code

 #include <iostream>
 #include <strstream>

 int main()
 {
     {
         std::istrstream s("1.234");
         double d;
         s >> d;
         std::cout << d << '\\n';
     } // destructor called
 }

.SH Output:

 1.234
